export interface IMenuConfig {
  id?: number;
  name: string;
  path: string;
  icon?: string;
  isShow?: number;
  showChild?: number;
  routes?: IMenuConfig[];
  screenUrl?: string;
  permission?: string;
  productId?: number;
  sortOrder?: number;
}

const menus: IMenuConfig[] = [
  {
    id: 1,
    name: "首页",
    path: `/main`,
    isShow: 1,
    sortOrder: 1,
    icon: "DashboardOutlined",
  },
  {
    id: 2,
    name: "列表页",
    path: `/list`,
    isShow: 1,
    sortOrder: 1,
    showChild: 1,
    icon: "DashboardOutlined",
    routes: [
      {
        id: 21,
        name: "卡片列表",
        path: `/list/card`,
        sortOrder: 1,
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined",
      },
      {
        id: 22,
        name: "查询列表",
        path: `/list/table`,
        sortOrder: 1,
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined",
      },
    ]
  },
  {
    id: 3,
    name: "表单",
    path: `/form`,
    sortOrder: 1,
    isShow: 1,
    showChild: 1,
    icon: "DashboardOutlined",
    routes: [
      {
        id: 31,
        name: "基础表单",
        path: `/form/normal`,
        sortOrder: 1,
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined",
      },
    ]
  },
  {
    id: 300,
    name: "统计",
    path: "/statistics",
    isShow: 1,
    showChild: 1,
    icon: "DashboardOutlined",
    routes: [
      {
        id: 310,
        name: "访客统计",
        path: `/statistics/visitor`,
        isShow: 1,
        showChild: 0,
        icon: "ClusterOutlined",
      },
      {
        id: 320,
        name: "反馈统计",
        path: "/statistics/feedback",
        isShow: 1,
        showChild: 0,
        icon: "ClusterOutlined",
      },
    ],
  },
  {
    id: 400,
    name: "系统设置",
    path: "/system",
    isShow: 1,
    showChild: 1,
    icon: "DashboardOutlined",
    routes: [
      {
        id: 410,
        name: "菜单管理",
        path: `/system/menu`,
        isShow: 1,
        showChild: 0,
        icon: "ClusterOutlined",
      },
      {
        id: 410,
        name: "角色管理",
        path: `/system/role`,
        isShow: 1,
        showChild: 0,
        icon: "ClusterOutlined",
      },
      {
        id: 420,
        name: "用户管理",
        path: "/system/user",
        isShow: 1,
        showChild: 0,
        icon: "ClusterOutlined",
      },
      {
        id: 420,
        name: "权限管理",
        path: "/system/permission",
        isShow: 1,
        showChild: 0,
        icon: "ClusterOutlined",
      }
    ],
  },
  {
    id: 500,
    name: "异常告警",
    path: "/system/alarm",
    isShow: 1,
    showChild: 0,
    icon: "DashboardOutlined"
  },
  {
    id: 500,
    name: "数据导出",
    path: "/data-export",
    isShow: 1,
    showChild: 0,
    icon: "DashboardOutlined"
  },
  {
    id: 500,
    name: "操作日志",
    path: "/operateLog",
    isShow: 1,
    showChild: 0,
    icon: "DashboardOutlined"
  },
  {
    id: 500,
    name: "个人中心",
    path: "/person",
    isShow: 1,
    showChild: 0,
    icon: "DashboardOutlined"
  },
  {
    id: 500,
    name: "用户管理",
    path: "/person",
    isShow: 1,
    showChild: 0,
    icon: "DashboardOutlined"
  },
  {
    id: 500,
    name: "平台管理",
    path: "/platform",
    isShow: 1,
    showChild: 1,
    icon: "DashboardOutlined",
    routes: [
      {
        id: 500,
        name: "产品管理",
        path: "/platform/product",
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined"
      },
      {
        id: 500,
        name: "字典管理",
        path: "/platform/dict",
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined"
      }
    ]
  },
  {
    id: 500,
    name: "运维管理",
    path: "/opt",
    isShow: 1,
    showChild: 1,
    icon: "DashboardOutlined",
    routes: [
      {
        id: 500,
        name: "系统告警",
        path: "/opt/alarm",
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined"
      },
      {
        id: 500,
        name: "产品日志",
        path: "/opt/log",
        isShow: 1,
        showChild: 0,
        icon: "DashboardOutlined"
      }
    ]
  }
]

export default menus
